使用 Vundle 管理 Vim 插件(Windowns 7)

(1)安装win版本的gvim:

下载地址 http://www.vim.org/download.php
比如安装目录是F:\Program Files (x86)\Vim, 并在此目录下新建”bundle\vundle”目录.

(2)安装git

安装git命令行: http://git-scm.com/ (已被长城)
或者github带GUI的版本: http://windows.github.com/
并且把git所在的目录加进环境变量PATH中.

(3) 安装vundle

打开cmd, 输入以下:

git clone https://github.com/gmarik/vundle “F:\Program Files (x86)\Vim\vimfiles\bundle\vundle”

保证git.exe在你的环境变量中.

(4)在_vimrc添加vundle:

打开C:\Users\xxx_vimrc, 添加如下配置:

set rtp+=$VIM/vimfiles/bundle/vundle/
call vundle#rc('$VIM/vimfiles/bundle/')

Bundle 'gmarik/vundle'
" original repos on github {
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
Bundle 'kien/ctrlp.vim'
Bundle 'Lokaltog/vim-powerline'
"Bundle 'Valloric/YouCompleteMe'
" }

" vim-scripts repos {
Bundle 'bufexplorer.zip'
Bundle 'grep.vim'
Bundle 'taglist.vim'
Bundle 'The-NERD-tree'
Bundle 'Markdown'
" }

" non github reposo {
" Bundle 'git://git.wincent.com/command-t.git'
" }

" Brief help {
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
" }
filetype plugin indent on " automatically detect file types.

(5) 通过vundle 安装vim 插件

在git shell 执行gvim, 然后在gvim内执行 :BundleInstall
done!